package com.synjones.pay.model.context;

import java.util.HashMap;

/**
 * create default context
 *
 * @author zhzy
 */
public class PayContextDefault implements IPayContext {

    private final PayRequest _request;
    private final PayResponse _response;

    public PayContextDefault(PayRequest request, PayResponse response) {
        super();
        _request = request;
        _response = response;
    }

    public PayContextDefault(HashMap<String, Object> reqMap,
            HashMap<String, Object> resMap) {
        this._request = new PayRequest(reqMap);
        this._response = new PayResponse(resMap);
    }

    // --------------------------------------------------------------
    @Override
    public PayRequest getRequest() {
        return this._request;
    }

    @Override
    public PayResponse getResponse() {
        return this._response;
    }

}
